package com.itheima.service.store.impl;

import com.itheima.dao.store.ProductDao;
import com.itheima.domain.store.Product;
import com.itheima.factory.DaoInstanceFactory;
import com.itheima.service.store.ProductService;

public class ProductServiceImpl implements ProductService {

    @Override
    public Product findById(String id) {
        ProductDao productDao = DaoInstanceFactory.getMapper(ProductDao.class);
        return productDao.findById(id);
    }
}
